Stored Procedures [dbo].[BAECompanyContactLoginValidation]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@UserIDvarchar(10)10
SQL Script
CREATE PROCEDURE [dbo].[BAECompanyContactLoginValidation]
      @UserID as varchar(10)
AS
      /* General Notes:
            Ideally, you would want this procedure to only return one row in order to maximize efficiency.
            Regardless of how it determines who has access, it absolutely must return the ID field from the
            iMIS Name table in some fashion.
      */

      SELECT ID FROM Name WHERE MEMBER_TYPE IN('CM') AND CO_ID <> '' AND ID = @UserID;

GO
Uses